import http from '@/utils/http';

export function getList(page,pageSize,name,categoryId,status) {
  return http.get('/setmeal/list',{
    params:{
        page,
        pageSize,
        name,
        categoryId,
        status
    }
  })
}

export function deleteSetmeal(id) {
    return http.delete(`/setmeal/delete/${id}`) 
}

export function addSetmeal(data) {
    return http.post('/setmeal/add',data)
}     

export function updateSetmeal(data) {
  return http.put('/setmeal/update',data)
}     
export function getSetmealDishes(id) {
  return http.get(`/setmeal/setmealDsihList/${id}`)
}     
